package com.cndw.kongfu;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegularExpTools {
	
	//[u4e00-u9fa5]中文
	
	private static String str = "动网先锋";
	
	public static void main(String[] args) {
		findCNCharset(str);
	}
	
	public static void findCNCharset(String str) {
		String rex = "/^[\u4e00-\u9fa5]*/";
		
		Pattern p = Pattern.compile(rex);
		
		Matcher m = p.matcher(str);
		if (m.find()) {
			System.out.println(m.group(1));
		}
	}

}
